package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * VIVO二代账号Token对象 vivo_token
 * 
 * @author Jack
 * @date 2025-07-29
 */
public class VivoToken extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 二代账户用户名 */
    @Excel(name = "二代账户用户名")
    private String userName;

    /** 二代账户公司名称 */
    @Excel(name = "二代账户公司名称")
    private String name;

    /** 账户UUID */
    @Excel(name = "账户UUID")
    private String uuid;

    /** accessToken值 */
    @Excel(name = "accessToken值")
    private String accessToken;

    /** refresh_token值 */
    @Excel(name = "refresh_token值")
    private String refreshToken;

    /** 时间戳(毫秒),accessToken截止的有效日期 */
    @Excel(name = "时间戳(毫秒),accessToken截止的有效日期")
    private Long tokenDate;

    /** 是否开启，0开启  1停用 */
    @Excel(name = "是否开启，0开启  1停用")
    private String isStart;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setUuid(String uuid) 
    {
        this.uuid = uuid;
    }

    public String getUuid() 
    {
        return uuid;
    }

    public void setAccessToken(String accessToken) 
    {
        this.accessToken = accessToken;
    }

    public String getAccessToken() 
    {
        return accessToken;
    }

    public void setRefreshToken(String refreshToken) 
    {
        this.refreshToken = refreshToken;
    }

    public String getRefreshToken() 
    {
        return refreshToken;
    }

    public void setTokenDate(Long tokenDate) 
    {
        this.tokenDate = tokenDate;
    }

    public Long getTokenDate() 
    {
        return tokenDate;
    }

    public void setIsStart(String isStart) 
    {
        this.isStart = isStart;
    }

    public String getIsStart() 
    {
        return isStart;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("name", getName())
            .append("uuid", getUuid())
            .append("accessToken", getAccessToken())
            .append("refreshToken", getRefreshToken())
            .append("tokenDate", getTokenDate())
            .append("remark", getRemark())
            .append("isStart", getIsStart())
            .toString();
    }
}
